package org.spring.cloud.manager.impl;

import java.util.List;

import org.spring.cloud.dao.UserMapper;
import org.spring.cloud.manager.UserManager;
import org.spring.cloud.model.UserModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Component
public class UserManagerImpl implements UserManager{

	@Autowired
	private UserMapper userMapper;
	
	@Override
	public List<UserModel> queryAll() {
		List<UserModel> selectAll = this.userMapper.selectAll();
		System.out.println(selectAll);
		return selectAll;
	}
	
}
